<?php
/**
 * Prado Portal.
 *
 * @author Steen Rabol <steen.rabol@gmail.com>
 * @link http://www.pradoportal.dk/
 * @copyright Copyright &copy; 2006,2007,2008 Steen Rabol
 * @license http://www.pradoportal.dk
 * @version $Id: OnlineUserInfoPortlet.php 408 2011-01-04 21:20:50Z steen.rabol $
 *
 */

Prado::using('Application.Portlets.Portlet');
Prado::using('Application.Portlets.OnlineUserInfoPortlet.Common.OnlineUserInfoPortletRecord');

class OnlineUserInfoPortlet extends Portlet
{
	public function onInit($param)
	{
		parent::onInit($param);
		//$this->ConfigRecord = OnlineUserInfoPortletRecord::finder()->findByPk($this->Parameters['id']);

		if(!TPropertyValue::ensureBoolean($this->Application->Parameters['TrackOnlineUsers']))
		{
			$this->pnlOnlineUserInfoPortlet->Enabled	= false;
			$this->pnlOnlineUserInfoPortlet->Visible	= false;
		}
	}

	public function SearchQuery($queryvalue)
	{
		return null;
	}
}
?>